﻿<div id="login">
    @if (SiteSecurity.IsAuthenticated)
    {
        <p>
            Welcome <a href="@Href("~/Account/Profile")" title="Profile">@SiteSecurity.CurrentUserName</a>!
            <a href="@Href("~/Account/Logout")">Logout</a>
        </p>
    }
    else
    {
        <ul>
            <li><a href="@Href("~/Account/Register")">Register</a></li>
            <li><a href="@Href("~/Account/Login")">Login</a></li>
        </ul>
    }
</div>